/**
 * @Title: DeviceService.java
 * @Package me.springboot.mybatis.service
 * @Description: TODO
 * @author zengh
 * @date 2018/04/15
 * @version V1.0
 */
package me.springboot.mybatis.service;

import me.springboot.mybatis.core.Service;
import me.springboot.mybatis.exception.ResultException;
import me.springboot.mybatis.model.Device;
import me.springboot.mybatis.web.req.DeviceReq;

import java.util.List;
import java.util.Map;


/**
 * @ClassName: DeviceService
 * @Description: TODO
 * @author zengh
 * @date 2018/04/15
 */
public interface DeviceService extends Service<Device> {
    void addDevice(Device device) throws ResultException;

    List<Map<String, Object>> searchDevice(DeviceReq deviceReq);

    List<Map<String, Object>> searchXunJianDevice(DeviceReq deviceReq);

    List<Device> selectByModel(Device device);

    Map<String,Object> getCount(Map<String, Object> paramMap);

    List<Map<String, Object>> paiDanList(DeviceReq deviceReq);

    List<Device> notFenPeiDeviceList(DeviceReq deviceReq);

    void fenPeiXunJianDevice(String devices, String userid);
}